package com.gljr.exam.tools;

public class GenerateExamPaper {

	public static String rightAndMistake() {
		for (int i = 1; i <= 50; i++) {// 生成对错明细
			String hTML = "<div class=\"qclass\"><h3>第" + i + "题:</h3><b>${exque" + i + "!}</b><#if err1" + i
					+ "??>${err1" + i + "}</#if>您的输入为:${getExop" + i + "!}-->正确答案为:<b>${strrealkey" + i
					+ "!}</b></div>";

			System.out.println(hTML);

		}
		return null;
	}

	public static String examPaperHtml() {
		for (int i = 1; i <= 50; i++) { // 生成试卷html
			String hTML1 = "<div class=\"qclass\"><h3>第" + i + "题</h3><b>${exampaperquestion" + i
					+ ".exquestion!}</b><br/>\r<input name=\"exop" + i + "\"" + " type=\"radio\" id=\"" + i
					+ "-a\" value=\"${exampaperquestion" + i + ".exopta!}\" />\r<label for=\"" + i
					+ "-a\">A.${exampaperquestion" + i + ".exopta!}</label>\r";
			String hTML2 = "<input name=\"exop" + i + "\"" + " type=\"radio\" id=\"" + i
					+ "-b\" value=\"${exampaperquestion" + i + ".exoptb!}\" />";
			String hTML3 = "\r<label for=\"" + i + "-b\">B.${exampaperquestion" + i + ".exoptb!}</label></div>";
			String hTML4 = "\r";
			String hTML = hTML1 + hTML2 + hTML3 + hTML4;
			System.out.println(hTML);
		}
		return null;
	}

	// public static void main(String[] args) {
	// System.out.println(GenerateExamPaper.rightAndMistake());
	// System.out.println(GenerateExamPaper.examPaperHtml());
	//
	// }
}
